﻿@model PhoneBilling.Models.SliceDetailEditModel
@{
    ViewBag.Title = "分级计费表编辑";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnConfirm").ligerButton(
        {
            click: function () {
                $('form').submit();
            }
        });
    });
    
</script>
@using (Html.BeginForm())
{ 
    <div class="slice_detail_edit">
        @Html.HiddenFor(m => m.SliceID)
        @Html.HiddenFor(m => m.IsNew)
        <div class="system_input_contain">
            @Html.LabelFor(m => m.名称)
            @if (Model.IsNew)
            {
                @Html.TextBoxFor(m => m.名称)
                @Html.ValidationMessageFor(m => m.名称, new { style = "color:Red" })
            }
            else
            {
                @Html.DisplayFor(m => m.名称)
                @Html.HiddenFor(m => m.名称)
            }
        </div>
        <div class="system_input_contain">
            <div class="system_input_group">
                @Html.LabelFor(m => m.分段起点时间)
                @Html.TextBoxFor(m => m.分段起点时间)
                @Html.ValidationMessageFor(m => m.分段起点时间, new { style = "color:Red" })
                @Html.LabelFor(m => m.分段截止时间)
                @Html.TextBoxFor(m => m.分段截止时间)
                @Html.ValidationMessageFor(m => m.分段截止时间, new { style = "color:Red" })
            </div>
        </div>
        <div class="system_input_contain">
            @Html.LabelFor(m => m.费用类别)
            @Html.DropDownListFor(m => m.费用类别, new SelectList(Model.FeeTypeList, "ID", "Name"), new { style = "input-text" })
            @Html.ValidationMessageFor(m => m.费用类别, new { style = "color:Red" })
        </div>
        <div class="system_input_contain">
            <div class="system_input_group">
                @Html.LabelFor(m => m.费率)
                @Html.TextBoxFor(m => m.费率)
                @Html.ValidationMessageFor(m => m.费率, new { style = "color:Red" })
                @Html.LabelFor(m => m.计次单位)
                @Html.TextBoxFor(m => m.计次单位)
                @Html.ValidationMessageFor(m => m.计次单位, new { style = "color:Red" })
            </div>
        </div>
        <div class="system_input_contain">
            <div class="system_checkbox">
                @Html.CheckBoxFor(m => m.是否计算计次, Model.是否计算计次)
                @Html.LabelFor(m => m.是否计算计次)
                @Html.ValidationMessageFor(m => m.是否计算计次, new { style = "color:Red" })
            </div>
        </div>
        <div class="system_input_contain">
            <input type="button" id="btnConfirm" value="确定" />
        </div>
    </div>
}
